<?php
/**
 * Automatically includes classes
 * 
 * @throws Exception
 * 
 * @param  string $class_name  Name of the class to load
 * @return void
 */
/*
function __autoload($class_name)
{
    // Customize this to your root Flourish directory
    $flourish_root = $_SERVER['DOCUMENT_ROOT'] . '/lolcomp/inc/flourishlib-flourish-classes-eb2d48b/';
    
    $file = $flourish_root . $class_name . '.php';

    if (file_exists($file)) {
        include $file;
        return;
    }
    
    throw new Exception('The class ' . $class_name . ' could not be loaded');
}
__autoload("fDatabase");
__autoload("fActiveRecord");
include_once($_SERVER['DOCUMENT_ROOT'] . '/lolcomp/model/Summoner.php');


fORMDatabase::attach(
    new fDatabase('mysql', 'medunet_killerhound',  'medunet_killer', 'blNgkRXZ2YE9')
);
fORM::mapClassToTable('Summoner', 'LOLCOMP_Summoner');
*/

require_once($_SERVER['DOCUMENT_ROOT'] . '/lolcomp/inc/RedBeanPHP/rb.php');
R::setup('mysql:host=localhost;dbname=medunet_killerhound','medunet_killer','blNgkRXZ2YE9');

?>